#ifndef __COMMON_H_
#define __COMMON_H_
#include "macros.h"
#include <avr/pgmspace.h>
void save_ack(uint8 x,uint8 y);
PGM_P cstr(PGM_VOID_P addr);
unsigned int cword(PGM_VOID_P addr);
unsigned char cbyte(PGM_VOID_P addr);
void delay_us(uint16 us);
void delay_ms(uint16 ms);
void select_sort(uint16 *a,uint16 N);
void select_sort_s(int *a,uint16 N);
void calendar_update(void);
void TimeShow(void);
/*void set_tq_close(uint8 state);*/
extern uint8 bDate;
extern uint8 bHour;    //time - hour
extern uint8 bMinute;  //time - minute
extern uint8 bSecond;  //time - second
extern uint8 tm_count;
#endif 
